package com.ruoyi.credit.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务合同对象 eva_task_contract
 *
 * @author ruoyi
 * @date 2022-03-10
 */
public class EvaTaskContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 支出类合同id */
    private Long contractId;

    /** 收入类合同id */
    private Long contractIncomeId;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** 合约方类型 */
    @Excel(name = "合约方类型")
    private String targetType;

    /** 合约方id（供应商/客户） */
    private Long targetId;

    /** 合约方名称 */
    @Excel(name = "合约方名称")
    private String targetName;

    /** 签订年份 */
    @Excel(name = "签订年份")
    private String signYear;

    public String getSignYear() {
        return signYear;
    }

    public void setSignYear(String signYear) {
        this.signYear = signYear;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }
    public void setContractIncomeId(Long contractIncomeId)
    {
        this.contractIncomeId = contractIncomeId;
    }

    public Long getContractIncomeId()
    {
        return contractIncomeId;
    }
    public void setContractName(String contractName)
    {
        this.contractName = contractName;
    }

    public String getContractName()
    {
        return contractName;
    }
    public void setTargetType(String targetType)
    {
        this.targetType = targetType;
    }

    public String getTargetType()
    {
        return targetType;
    }
    public void setTargetId(Long targetId)
    {
        this.targetId = targetId;
    }

    public Long getTargetId()
    {
        return targetId;
    }
    public void setTargetName(String targetName)
    {
        this.targetName = targetName;
    }

    public String getTargetName()
    {
        return targetName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("contractId", getContractId())
            .append("contractIncomeId", getContractIncomeId())
            .append("contractName", getContractName())
            .append("targetType", getTargetType())
            .append("targetId", getTargetId())
            .append("targetName", getTargetName())
            .toString();
    }
}
